<?php
/**
 * Description of AuditModule
 * 密码复杂度Module
 * @author
 */
//require_rewrite(MODULE_ROOT.'dao/UserDao.class.php');
class PwdModule extends BaseModule{

    public function __construct() {
        parent::__construct();
    }

    /**
     * 密码复杂度设置
     * @param array $PwdData
     * @param array $id
     * @return boolean
     */
    public function setPwdComplexity($PwdData,$id){
        $up=UserDao::sql_upComplexity($PwdData['type'], $PwdData['length'], $id);
        return $up;
    }

    /**
     * 展示当前密码复杂度
     */
    public function getPwdComplexity(){
         $get=UserDao::sql_getComplexity();
         $get[0]['pwdTxt']=Handler_validate::pwdConfig($get[0]['pwdType']);
         return $get;
    }

}

?>
